import request from './request'

// 获取二级导航
export async function get_nav(params) {
    return await request.get('/getsidebar', { params })
}

// 获取货物列表
export async function get_goods_list(params) {
    return await request.get('/getGoodsList', { params })
}

// 模糊搜素
export async function like_search(params) {
    return await request.get('/likeSearch', { params })
}

// 搜索
export async function search(params) {
    return await request.get('/search', { params })
}

// 获取货物详情
export async function get_goods(params) {
    return await request.get('/getGoodsByIds', { params })
}